home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_772
/
frame_12
/
PlaceObject2_634_286
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
638b
|
24 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
play();
if(this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 10,true) or this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 50,true))
{
_global.blackkey = true;
}
if(_currentframe > 8 and _global.blackkey == false)
{
gotoAndStop(1);
}
if(_currentframe == _totalframes)
{
this.swapDepths(0);
removeMovieClip(this);
}
}
if(_root.paused == true)
{
stop();
}
}